package com.ddone.finance.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

/**
 * @author ddone
 * @date 2024/4/17-17:43
 */
@Data
@ApiModel("用户查询对象")
public class LoginVo {


    @Range(min = 1,max = 2,message = "类型不在范围之内")
    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @NotEmpty
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @NotEmpty
    @ApiModelProperty(value = "密码")
    private String password;


}
